<?php

// +----------------------------------------------------------------------
// | EasyAdmin
// +----------------------------------------------------------------------
// | PHP交流群: 763822524
// +----------------------------------------------------------------------
// | 开源协议  https://mit-license.org
// +----------------------------------------------------------------------
// | github开源项目：https://github.com/zhongshaofa/EasyAdmin
// +----------------------------------------------------------------------

namespace addons\{__MDEMO__}\model;

use app\common\model\TimeModel;

class {__DEMO__} extends TimeModel
{
    protected $name = "{__TDEMO__}";
    protected $autoWriteTimestamp = true;
    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';

    public function getStatusList()
    {
        return ['0' => '禁用', '1' => '启用'];
    }
}
